#include "db/base_db_helper.h"
DatabaseHelper::DatabaseHelper(const char* db_ip, const char* db_name, const char* account,
    const char* password)
{
    connect(db_ip, db_name, account, password);
}

DatabaseHelper::DatabaseHelper()
{
    _db_ip = "";
    _db_name = "";
    _db_account = "";
    _db_password = "";
    _connected = false;
}

bool DatabaseHelper::connect(const char* db_ip, const char* db_name, const char* account,
    const char* password)
{
    _db_ip = db_ip;
    _db_name = db_name;
    _db_account = account;
    _db_password = password;
    _connected = connect();
    return _connected;
}


DatabaseHelper::~DatabaseHelper()
{
}
